{if $_aMessages || $aErrors}
<div id="{$sJsDiv|default:'jsErr'}" style="font-size:9pt; padding:6px; font-weight:bold;" class="border13">
  {foreach from=$_aMessages item=aMessage}
  <span class="message_{$aMessage.type}">{$aMessage.text}</span><br />
  {/foreach}
  {foreach from=$aErrors item=sError}
  <span class="message_error">{$sError}</span><br/>
  {/foreach}
</div>
<br/>
{/if}